package com.heihei.demo05;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;

/**
 *  Platform.runLater
 *  非多线程，因此不适用于做大量操作
 *
 * @version 1.0
 * @since JDK1.8
 * @author duanhengfei
 * @date 2021年03月11日 17:46:05
 */
public class Start extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                System.out.println("runLater线程：" + Thread.currentThread().getName());
                System.out.println("123");
            }
        });
        System.out.println("外面的线程：" + Thread.currentThread().getName());
        System.out.println("runLater下面");
    }
}